﻿using System.ComponentModel.DataAnnotations;
using TNPTN.Utility.Validation;
using TNPTN.Constant;
namespace TNPTN.Models
{
    /// <summary>
    /// Login Model
    /// Author: jabraok
    /// </summary>
    public class LoginModel
    {
        [tRequired]
        [Display(Name = Language.LBL_EMAIL, ResourceType=typeof(Lang.Lang))]
        public string Email { get; set; }

        [tRequired]
        [DataType(DataType.Password)]
        [Display(Name = Language.LBL_PASSWORD, ResourceType = typeof(Lang.Lang))]
        public string Password { get; set; }
    }
}